home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / 8bit / cislib_a / charse.doc < prev    next >
Text File  |  1995-04-22  |  3KB  |  112 lines

  1.  
  2. This program will help you learn how 
  3. to re-define the Atari character set. 
  4.  
  5. It will draw an 8x8 graph in the top 
  6. left corner of the screen.  This is 
  7. what you use to draw your new 
  8. character in.  I highly recommend 
  9. having a sketch already made on graph 
  10. paper.  It's MUCH easier that way! 
  11.  
  12. Anyway, you start at the top line, 
  13. and in each bit you want to turn on, 
  14. enter the letter X.  To move around 
  15. each line, use the arrow keys, 
  16. WITHOUT the CONTROL key.  If you make 
  17. a mistake and enter an X in the wrong 
  18. spot, use the BACK ARROW to go to 
  19. that box, then hit the BACKSPACE key 
  20. to delete it from the grid and 
  21. memory.  When finished with a 
  22. particular line, hit RETURN and that 
  23. line is saved.  After hitting return, 
  24. there is no way to get back to that 
  25. line, so be careful! 
  26.  
  27. When you hit RETURN after the last 
  28. line, you will be asked for the 
  29. specific character you wish to 
  30. replace.  Enter the exact character, 
  31. NOT its ASCII code or anything else. 
  32. The program will do that.  It will 
  33. then change the character, which 
  34. takes about 30 seconds.  Afterwards, 
  35. it will display a DATA line that you 
  36. would use if you wrote the program 
  37. to re-define the charcters (see 
  38. below). 
  39.  
  40. Things to note: 
  41.      Use the left and right ARROW 
  42.      keys to move around each line. 
  43.  
  44.      Enter an X in each spot (bit) 
  45.      you wish to turn on. 
  46.  
  47.      To delete an X, use the ARROW 
  48.      key to get to that spot, then 
  49.      hit the BACKSPACE key. 
  50.  
  51.      Hit RETURN only after you know 
  52.      the line is error-free. 
  53.  
  54. Now, an attempt at a little character 
  55. re-definition information... 
  56.  
  57. A character is roughly equal to one 
  58. byte of memory, made up of 8 bits. 
  59. Depending on which bits are set to 
  60. "on", you can create different shapes 
  61. for whichever characters you want. 
  62. When you enter an X in this program, 
  63. you are setting that BIT to on. 
  64.  
  65. There is an easy way to re-define the 
  66. character set, and it was printed 
  67. in the February, 1984 issue of Antic. 
  68. This is what I used to help create 
  69. this program.  At the end of the 
  70. program that was in Antic, you need 
  71. DATA statements that hold the 
  72. information needed to re-shape the 
  73. character.  The first number is the 
  74. character number (different from its 
  75. ASCII code) and the other 8 numbers 
  76. tell which bits to turn on.  When you 
  77. run my program, it will supply you 
  78. with the DATA statements for each 
  79. character you create.  You then take 
  80. down these DATA statements and put 
  81. them in the program out of Antic. 
  82. So, my program will re-define one 
  83. character at a time, but you can do 
  84. as many as you want with the Antic 
  85. program, using the DATA statements 
  86. from my program!  Got all that?! 
  87.  
  88. The following program was in Antic, 
  89. written by Chris Chabris, and will 
  90. re-define the Atari character set: 
  91.  
  92. (you may use your own line numbers, 
  93. of course) 
  94. 10 CH=PEEK(106)-8:CH=CH*256 
  95. 20 FOR LOOP=0 TO 1023:BYTE=PEEK(57344+LOOP):POKE CH+LOOP,BYTE:NEXT LOOP 
  96. 30 RESTORE 100 
  97. 40 READ NUM:IF NUM=-1 THEN (END, RETURN, GOTO, whatever) 
  98. 50 NUM=NUM*8:FOR LOOP=0 TO 7:READ BYTE:POKE CH+NUM+LOOP,BYTE:NEXT LOOP 
  99. 60 GOTO 40 
  100. 100 DATA (from my program) 
  101. 110 DATA 
  102. 120 DATA 
  103. 130 DATA 
  104. ...and so on... 
  105. 200 DATA -1 
  106.  
  107. If you have any questions, refer to 
  108. Antic, February, 1984, or leave me 
  109. a message and I'll try to help. 
  110. Enjoy! 
  111. Tom Bellucco 
  112. YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY